getRegion Method |
Gets the reference of an existing region. If no region exists, then a floating region is created. Once a region is found, the AppPalette can be loaded as an HTML string by getting the Tab object and setting the innerHTML.
Syntax
application.getRegion(sRegionId)
Parameters
Parameter |
Description |
---|---|
sRegionId |
Required. Refers to the ID of the region defined. If no region is defined, a new floating region is created. |
Return Value
Returns the Region object.
Example
var region = application.getRegion("leftRegion"); var regionTab = region.getTab("TestTab"); regionTab.setTitle("HTML Content", "HTML Content"); regionTab.setContent(htmlString)